Platform Explorer / Nuxeo Platform LTS 2016 8.10

Component org.nuxeo.ecm.platform.picture.renditions

Contributions

XML Source

<?xml version="1.0" encoding="UTF-8"?>
<component name="org.nuxeo.ecm.platform.picture.renditions">

  <require>org.nuxeo.ecm.platform.rendition.contrib</require>

  <extension target="org.nuxeo.ecm.platform.rendition.service.RenditionService"
    point="renditionDefinitionProviders">

    <renditionDefinitionProvider name="pictureRenditionDefinitionProvider"
      class="org.nuxeo.ecm.platform.picture.rendition.PictureRenditionDefinitionProvider">
      <filters>
        <filter-id>hasPictureFacet</filter-id>
      </filters>
    </renditionDefinitionProvider>

  </extension>

  <extension target="org.nuxeo.ecm.platform.rendition.service.RenditionService"
    point="renditionDefinitions">

    <renditionDefinition name="imageToPDF">
      <label>label.rendition.pdf</label>
      <icon>/icons/pdf.png</icon>
      <contentType>application/pdf</contentType>
      <operationChain>Image.Blob.ConvertToPDF</operationChain>
      <filters>
        <filter-id>hasPictureFacet</filter-id>
      </filters>
    </renditionDefinition>

  </extension>

  <extension target="org.nuxeo.ecm.platform.actions.ActionService"
    point="filters">

    <filter id="hasPictureFacet">
      <rule grant="true">
        <facet>Picture</facet>
      </rule>
    </filter>

    <filter id="allowPDFRendition" append="true">
      <rule grant="false">
        <facet>Picture</facet>
      </rule>
    </filter>

  </extension>

</component>